package com.atguigu.yygh.common.result;


public enum REnum {
    SUCCESS(20000,"成功",true),
    ERROR(20001,"失败",false);
    //    设置枚举项
    private Integer code;
    private String message;
    private Boolean flag;


    REnum(Integer code, String message, Boolean flag) {
        this.code = code;
        this.message = message;
        this.flag = flag;
    }

    /**
     * 获取
     * @return code
     */
    public Integer getCode() {
        return code;
    }

    /**
     * 设置
     * @param code
     */
    public void setCode(Integer code) {
        this.code = code;
    }

    /**
     * 获取
     * @return message
     */
    public String getMessage() {
        return message;
    }

    /**
     * 设置
     * @param message
     */
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * 获取
     * @return flag
     */
    public Boolean getFlag() {
        return flag;
    }

    /**
     * 设置
     * @param flag
     */
    public void setFlag(Boolean flag) {
        this.flag = flag;
    }

    public String toString() {
        return "REnum{code = " + code + ", message = " + message + ", flag = " + flag + "}";
    }
}
